package com.wmh.baseservice.robot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 自动化机器-管理员发布任务单元
 * @author 谢骏
 * @TableName robot_task_ad_push_unit
 * @createDate 2023-09-07 14:22:21
 */
@Data
@Accessors(chain = true)
@TableName("robot_task_ad_push_unit")
public class RobotTaskAdPushUnit implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 发布单元名称名称
     */
    @TableField(value = COL_NAME)
    private String name;

    /**
     * 任务参数
     */
    @TableField(value = COL_PARAM)
    private String param;

    /**
     * 管理员编号
     */
    @TableField(value = COL_AD_ID)
    private Long adId;

    /**
     * 任务编号
     */
    @TableField(value = COL_ROBOT_TASK_ID)
    private Long robotTaskId;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 0未删除 1已删除
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 任务名称
     */
    public static final String COL_NAME = "name";

    /**
     * 任务参数
     */
    public static final String COL_PARAM = "param";

    /**
     * 管理员编号
     */
    public static final String COL_AD_ID = "ad_id";

    /**
     * 任务编号
     */
    public static final String COL_ROBOT_TASK_ID = "robot_task_id";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 0未删除 1已删除
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
